package ch.exploadingelephants.graph;

/**
 * @author Sandro De Zanet
 * 
 */
public class TokenResult {

    private final DotString string;
    private final boolean accept;

    /**
     * @param b
     * @param copy
     */
    public TokenResult(boolean accept, DotString string) {
	this.accept = accept;
	this.string = string;
    }

    /**
     * @return
     */
    public boolean isAccept() {
	return this.accept;
    }

    /**
     * @return
     */
    public DotString getString() {
	return string;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
	return "accept: " + accept + " Remaining string:" + string;
    }

}
